<?php

namespace Ionafan2\GetonlyimgBundle\Tests\Controller;

use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;

class DefaultControllerTest extends WebTestCase
{
    public function testIndex()
    {
        $client = static::createClient();
        $path = $client->getContainer()->get('router')->generate('index');
        $crawler = $client->request("GET", $path);
        $this->assertEquals(1, $crawler->filter('div.navbar')->count());
        $this->assertEquals(1, $crawler->filter('form input#url_form_url')->count());
    }
}
